﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="maincontent" id="tabcontent">
        <h2>
            Send SMS
        </h2>
        <div id="sendsms">
            <% using (Html.BeginForm("Send", "Send", FormMethod.Post))
               { %>
            <div class="to">
                <div class="tips">
                    <div class="label">
                        Tips:</div>
                    <div class="content">
                        请填写将要发送用户的Alias或者Email地址，多个用户以分号相隔。Email必须是正确的电子邮箱，Alias必须是存在的Email地址的别名。如：parkerz;milesch;elanzh@alcatel-sbell.com.cn</div>
                </div>
                <span class="label"><a href="#" class="selectto">To</a></span><span class="input">
                    <textarea name="addresslist" class="addresslist"></textarea></span><span class="plus">
                        <img src="<%:Url.Content("~/Content/images/icons/plus.png")%>" width="12" height="12"
                            alt="+" /></span> <span class="lessen">
                                <img src="<%:Url.Content("~/Content/images/icons/lessen.png")%>" width="12" height="12"
                                    alt="-" /></span> <span class="label">
                                        <br />
                                    </span>
            </div>
            <div class="to">
                <br />
                <div class="tips">
                    <div class="label">
                        Tips:</div>
                    <div class="content">
                        选择你已有的模板</div>
                </div>
                <span class="label">Template:</span> <span class="input">
                    <select class="template tipToContent" name="template">
                        <option>模板1</option>
                        <option>模板2</option>
                    </select>
                </span><span class="label">
                    <br />
                </span>
            </div>
            <div class="to">
                <br />
                <div class="tips">
                    <div class="label">
                        Tips:</div>
                    <div class="content">
                        填写你要发送的内容</div>
                </div>
                <span class="label">SMS Content:</span> <span class="input">
                    <textarea name="addresslists" class="addresslists"></textarea>
                </span>
            </div>
            <div class="button">
                <span class="label">&nbsp;</span><input name="sendsmsbutton" type="submit" class="button"
                    value="发送" /></div>
            <%: TempData["msg"] %>
            <%   } %>
        </div>
    </div>
    <div class="popupwin">
        <div id="datagrid">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <thead>
                    <tr>
                        <td width="40%">
                            Contact Name
                        </td>
                        <td>
                            Number
                        </td>
                    </tr>
                </thead>
            </table>
            <div class="addresslist">
                <table border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                        <% if (Model != null && Model.Infos != null && Model.Infos.Count > 0)
                           {
                               foreach (var info in Model.Infos)
                               {%>
                        <tr>
                            <td width="40%">
                                <input name="contactname" type="checkbox" value="<%: info.Name %>" /><%: info.Name %>
                            </td>
                            <td>
                                <%: info.Number %>
                            </td>
                        </tr>
                        <% }
                           }
                           else
                           { %>
                        <tr>
                            <td>
                                你的电话本里面暂无联系人
                            </td>
                        </tr>
                        <%} %>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <link rel="stylesheet" type="text/css" href="<%:Url.Content("~/Content/css/themes/default/easyui.css")%>" />
    <link rel="stylesheet" type="text/css" href="<%:Url.Content("~/Content/css/themes/icon.css")%>" />
    <link href="<%:Url.Content("~/Content/css/icons.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%:Url.Content("~/Content/css/sendsms.css")%>" rel="stylesheet" type="text/css" />
    <script src="<%:Url.Content("~/Content/js/jquery.bgiframe.js")%>"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.easyui.js")%>"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.mask.js")%>"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.alcatel.sendsms.js")%>"></script>
</asp:Content>
